# CI_FB fehlende Parameter: -Wstrict-prototypes und -fno-common
OPTFLAGS        = -O3 -Wall -Werror -Wextra -pedantic -g
CC              = gcc
MAKE            = make
RM              = rm -f
DOXYGEN         = doxygen

%.o : %.c
	$(CC) $(OPTFLAGS) -o $@ -c $<

all: clean receiver sender

receiver: receiver.o shmem.o
	$(CC) $(OPTFLAGS) receiver.o shmem.o -lsem182 -o receiver

sender: sender.o shmem.o
	$(CC) $(OPTFLAGS) sender.o shmem.o -lsem182 -o sender

clean:
	$(RM) *.o *.h.gch receiver sender

clean_doc:
	$(RM) -r doc/

doc: clean_doc
	$(DOXYGEN)

clean_all: clean clean_doc
# CI_FB dependencies fehlen!
